from ultralytics import YOLO

model = YOLO(r'/home/hxt/ultralytics-main/runs/exp23/weights/best.pt')  # 加载模型
model.export(format="onnx", nms=False, dynamic=True)  # 导出模型时不进行NMS，即不输出边界框